
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGStatisticsForeground.h>
#include <OpenSG/OSGStatisticsForegroundBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StatisticsForeground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_StatisticsForeground()
{
    scope* osg_StatisticsForegroundBase_scope = new scope(
    class_< osg::StatisticsForegroundBase, bases< osg::Foreground > , boost::noncopyable >("StatisticsForegroundBase", no_init)
//        .def_readonly("ElementIDsFieldMask", &osg::StatisticsForegroundBase::ElementIDsFieldMask)
//        .def_readonly("CollectorFieldMask", &osg::StatisticsForegroundBase::CollectorFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::StatisticsForegroundBase::MTInfluenceMask)
        .def("getClassType", &osg::StatisticsForegroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::StatisticsForegroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::StatisticsForegroundBase::*)() )&osg::StatisticsForegroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::StatisticsForegroundBase::*)() const)&osg::StatisticsForegroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::StatisticsForegroundBase::getContainerSize)
        //.def("getCollector", (osg::StatCollector& (osg::StatisticsForegroundBase::*)() )&osg::StatisticsForegroundBase::getCollector, return_value_policy< copy_const_reference >())
        .def("getCollector", (const osg::StatCollector& (osg::StatisticsForegroundBase::*)() const)&osg::StatisticsForegroundBase::getCollector, return_value_policy< copy_const_reference >())
        .def("getElementIDs", (osg::Int32& (osg::StatisticsForegroundBase::*)(const osg::UInt32) )&osg::StatisticsForegroundBase::getElementIDs, return_value_policy< copy_non_const_reference >())
        //.def("getElementIDs", (osg::MFInt32& (osg::StatisticsForegroundBase::*)() )&osg::StatisticsForegroundBase::getElementIDs, return_value_policy< copy_const_reference >())
        .def("getElementIDs", (const osg::MFInt32& (osg::StatisticsForegroundBase::*)() const)&osg::StatisticsForegroundBase::getElementIDs, return_value_policy< copy_const_reference >())
        .def("setCollector", &osg::StatisticsForegroundBase::setCollector)
        .def("getBinSize", &osg::StatisticsForegroundBase::getBinSize)
        .def("copyToBin", &osg::StatisticsForegroundBase::copyToBin)
        .def("copyFromBin", &osg::StatisticsForegroundBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    );

    scope().attr("ElementIDsFieldId") = (int)osg::StatisticsForegroundBase::ElementIDsFieldId;
    scope().attr("NextFieldId") = (int)osg::StatisticsForegroundBase::NextFieldId;
    scope().attr("CollectorFieldId") = (int)osg::StatisticsForegroundBase::CollectorFieldId;

    delete osg_StatisticsForegroundBase_scope;

    class_< osg::StatisticsForeground, bases< osg::StatisticsForegroundBase > , boost::noncopyable, osg::StatisticsForegroundRefPtr >("StatisticsForeground", no_init)
        .def("changed", &osg::StatisticsForeground::changed)
        .def("dump", &osg::StatisticsForeground::dump, osg_StatisticsForeground_dump_overloads_0_2())
        .def("draw", &osg::StatisticsForeground::draw)
    ;


    register_ptr_to_python<osg::StatisticsForegroundPtr>();
    implicitly_convertible<osg::StatisticsForegroundRefPtr, osg::StatisticsForegroundPtr>();
    implicitly_convertible<osg::StatisticsForegroundPtr, osg::ForegroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::StatisticsForegroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::StatisticsForegroundPtr>);
}

